package com.example.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

@RestController
@Controller
public class List<S> {
    @GetMapping("/list")
    public int[] list(@RequestParam(value = "start") Integer start) {
        System.out.println(start);
        int[] ii = new int[100];
        for (int i = 0; i < 100; i++) {
            ii[i] = start;
        }

        return ii;
    }

    @GetMapping("index")
    public String index() {
        return "index";
    }
}
